package com.ant.storage.mapper;

import com.ant.storage.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

public interface UserMapper extends BaseMapper<User>{
    /**
     * 通过电话号码查询
     * @param tel
     * @return
     */
    User telQueryUserId(Long tel);

    /**
     *  通过id查询
     * @param id
     * @return
     */
    User QueryUserId(String id);

    /**
     * 通过姓名查询user_id
     * @param name
     * @return
     */
    User nameQueryUserId(String name);

    void deleteDept();

    void deleteUser();
}
